<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/16
 * Time: 16:12
 */
namespace app\admin\controller;

use think\Db;

class Restaurant extends AdminController
{
    public function restList()
    {
//        $city = Db::name('city')->field('id, name')->all();
//        $rt = Db::name('city')->field('id, name')->all();

//        $data['city'] = $city;
        return $this->fetch('restaurant/rest_list');
    }

    public function restAddPage()
    {
        return $this->fetch('restaurant/rest_add');
    }

    public function restAdd()
    {
        dump($_POST);
        return 'ok';
    }
}